package com.apanal.qlife.common.util;

/**
 * id生成器单例工厂
 * 
 * 
 * @author shuliangxing
 * 
 * @date 2015-8-25下午5:51:21
 */
public class IdWorkerFactory {

	private IdWorkerFactory() {
		super();
	}

	private static final IdWorker idWorker = new IdWorker(1, 1);

	public static IdWorker getInstance() {
		return idWorker;
	}

	public static long nextId() {
		return idWorker.nextId();
	}

}
